<%-- 
    Document   : adminListComments
    Created on : 08-mar-2012, 17:24:00
    Author     : Patricia
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>


<table align="center">
    <tr>
        <td colspan="2"><h1>LISTADO COMENTARIOS POR EJERCICIOS</h1></td>
    </tr>
    <tr bgcolor="green">
        <td><b>Comentario</b></td>
        <td><b>Opciones</b></td>
    </tr>
        <logic:iterate  name="commentlistAdmin"  id="cm">
            <tr>
                <td> ${cm.comentario}</td>
                <td><html:link href="DeleteComment.do?idcm=${cm.idcomentario}">Reportar</html:link></td>
            </tr>    
        </logic:iterate>
    <logic:notPresent name="commentlistAdmin">
        <tr align="center">
            <td colspan="2"><i>Este ejercicio no tiene comentarios.</i></td>
        </tr>  
    </logic:notPresent>    
    <tr align="center">
        <td colspan="2"><html:link action="/ListAllExercises.do">Volver</html:link><br></td>
    </tr>    
</table>